package com.myway.dto.order.domain;

public enum IntegralStatus {
    NORMAL("NORMAL"),// 正常

    ABNORMAL("ABNORMAL"),// 异常

    INVALID("INVALID"),// 无效

    FREEZE("FREEZE"),// 冻结

    AUDIT("AUDIT"),// 审核中

    AUDIT_COMPLETION("AUDIT_COMPLETION");// 审核完成

    private final String status;

    IntegralStatus(String status){
        this.status = status;
    }

    public static IntegralStatus valueOfStatus(String status){
        for(IntegralStatus integralStatus : IntegralStatus.values()){
            if(integralStatus.getStatus() == status){
                return integralStatus;
            }
        }
        return null;
    }

    public String getStatus() {
        return this.status;
    }
}
